<template>
  <div
    :type="type"
    :style="{
      backgroundColor,
      width,
      height,
    }"
    class="split-line"
  ></div>
</template>
<script setup>
defineProps({
  type: {
    default: "vertical", //vertical,horizontal
    type: String,
  },
  color: {
    default: null,
    type: String,
  },
  height: {
    default: null,
    type: String,
  },
  width: {
    default: null,
    type: String,
  },
});
</script>
<style lang="scss" scoped>
.split-line {
  display: inline-block;
  background-color: $border-color;
  &[type="vertical"] {
    height: 100%;
    margin: 0 16px;
    width: 1px;
  }
}
</style>
